import request from '@/utils/request'

export function getList(data){
    return request({
        url:"/Brand_first/get_brandlist",
        method:"post",
        data: data
    })
}
// 一级品牌
export function fristBrandList(data) {
    return request({
        url: '/General/get_brand_first',
        method: 'post',
        data: {
            category_id: 18
        }
    })
}
export function org_click() {
    return request({
        url: '/Brand_first/brand_parent',
        method: 'post',
        data: {
        }
    })
}
export function mark_look(ids){
    return request({
        url: "/Brand_first/get_one",
        method: "post",
        data: {
            id: ids
        }
    })
}
export function edit_brand(ids){
    return request({
        url: "/Brand_first/get_edit",
        method: "post",
        data: {
            id: ids
        }
    })
}
export function del_brandSecond(ids){
    return request({
        url: "/Brand_first/delete_brand",
        method: "post",
        data: {
            id: ids
        }
        
    })
}
export function get_one(ids){
    return request({
        url:"/Brand_first/get_one",
        method:"post",
        data:ids
    })
}
// 保存
export function save(data,url) {
    return request({
        url: url,
        method: 'post',
        data: data
    })
}